//
//  EquipListModel.h
//  CarLifes
//
//  Created by yu on 2017/8/8.
//  Copyright © 2017年 jpas. All rights reserved.
//

#import <Foundation/Foundation.h>

@class PointModel;
@interface EquipmentModel : NSObject<MAAnnotation>
// 设备型号
@property (nonatomic, copy) NSString *eqModel;
// 设备号
@property (nonatomic, copy) NSString *eqNo;
// 身份证号
@property (nonatomic, copy) NSString *owenerId;
// 车主姓名
@property (nonatomic, copy) NSString *ownerName;
// SIM卡号
@property (nonatomic, copy) NSString *sim;
// 车架号
@property (nonatomic, copy) NSString *vin;
// 车牌号
@property (nonatomic, copy) NSString *plateNum;
// 车辆型号
@property (nonatomic, copy) NSString *vModel;
@property (nonatomic, copy) NSString *eqId;
// 合同号
@property (nonatomic, copy) NSString *contractNo;
// 设备状态
@property (nonatomic, copy) NSString *status;
// 当前位置
@property (nonatomic, copy) NSString *eqPosition;
// (point)包含设备的经度、纬度、角度
@property (nonatomic, strong) PointModel *pointModel;
// 更新时间
@property (nonatomic, copy) NSString *updateTime;
// 发动机号
@property (nonatomic, copy) NSString *engineNo;
// 到期时间
@property (nonatomic, copy) NSString *expTime;
// 创建时间(出厂时间)
@property (nonatomic, copy) NSString *createTime;
//
@property (nonatomic, copy) NSString *phone;
@property (nonatomic, copy) NSString *egId;
@property (nonatomic, copy) NSString *postType;
// 设备禁用状态
@property (nonatomic, copy) NSString *mark;
// 离线时间、静止时间
@property (nonatomic, copy) NSString *cnStatus;

// ClusterAnnotation
@property (nonatomic, assign) CLLocationCoordinate2D coordinate; //poi的平均位置
@property (nonatomic, assign) NSInteger count;
@property (nonatomic, strong) NSMutableArray *pois;

- (id)initWithCoordinate:(CLLocationCoordinate2D)coordinate count:(NSInteger)count;

@end

@interface PointModel : NSObject

@property (nonatomic, copy) NSString *lat;
@property (nonatomic, copy) NSString *lng;
@property (nonatomic, copy) NSString *dir;
@property (nonatomic, copy) NSString *positionTime;
@property (nonatomic, copy) NSString *postType;

@end

// 每种设备状态下的设备个数
@interface EquipStatusCount : NSObject

@property (nonatomic, copy) NSString *total; //全部
@property (nonatomic, copy) NSString *act; //激活
@property (nonatomic, copy) NSString *ol;  //在线
@property (nonatomic, copy) NSString *unact; //未激活
@property (nonatomic, copy) NSString *off; //离线

@end
